<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>学生编辑</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
</head>
<body>

<form class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">

    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" name="stu_username"  lay-verify="required"  value="{$studentInfo['stu_username']}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">登录密码</label>
        <div class="layui-input-block">
            <input type="password" name="stu_password"  placeholder="填入新密码（不修改请置空）" autocomplete="off" class="layui-input">
            <input type="hidden" name="old_password" value="{$studentInfo['stu_password']}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input type="text" name="stu_mobile"  lay-verify="phone" value="{$studentInfo['stu_mobile']}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-block">
            <input type="text" name="stu_realname" lay-verify="required" value="{$studentInfo['stu_realname']}" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学校</label>
        <div class="layui-input-block">
            <input type="text" name="stu_school" value="{$studentInfo['stu_school']}"  placeholder="学生学校" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年级</label>
        <div class="layui-input-block">
            <select name="stu_grade" lay-verify="">
                {volist name="gradeData" id="vo" key="index"}
                <option value="{$vo}" {if $studentInfo['stu_grade']==$vo}selected{/if}>{$vo}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开通状态</label>
        <div class="layui-input-inline">
            <input type="checkbox" {if $studentInfo['stu_status']==$Status['on']}checked{/if} lay-filter="switch" name="stu_status" lay-skin="switch" lay-text="已开通|待开通" >
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <button class="layui-btn" lay-submit lay-filter="LAY-student-edit-submit" id="LAY-student-edit-submit">提交</button>
    </div>
</form>

<script src="/static/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form ;
    })
</script>
</body>
</html>
